//
//  AppUser.m
//  Fangmm
//
//  Created by 阮琦 on 16/3/14.
//  Copyright © 2016年 com.fangmm. All rights reserved.
//

#import "AppUser.h"

@implementation AppUser

static User *_user;

+ (User *)allocWithZone:(struct _NSZone *)zone
{
    @synchronized(self) {
        if (_user == nil) {
            _user = [super allocWithZone:zone];
        }
    }
    return _user;
}

+ (User *)sharedBroker{
    @synchronized(self){
        if(_user == nil){
            _user = [[self alloc] init];
        }
    }
    return _user;
}

-(User *)copyWithZone:(struct _NSZone *)zone{
    return _user;
}



@end
